|
Расположение в меню |
---|
TechDraw → Вставить SVG знак |
Верстаки |
TechDraw |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Шаблоны, Draft SVG |
The TechDraw Symbol tool inserts a Symbol object. A Symbol is a stripped down view that contains only a single SVG file complying with the svg-tiny specification (see TechDraw Templates).
A Symbol can be anything that helps annotate a drawing and that doesn't need to be further modified, it may however contain editable texts.
introduced in version 1.0: The TechDraw View tool can also create a Symbol.
Compass rose added to the drawing page; this symbol is available by installing the "symbols_library" addon with the Addon Manager
See also: Property editor.
A Symbol, formally a TechDraw::DrawViewSymbol
object, has the properties that are common to all View types. It also has the following additional properties:
Drawing view
String
): The SVG code defining this symbol.StringList
): Substitution values for the editable strings in this symbol.Link
): Feature to which this symbol is attached. introduced in version 1.0
См. так же: TechDraw API и Основы составления скриптов FreeCAD.
The Symbol tool can be used in macros and from the Python console by using the following functions:
sym = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewSymbol','TestSymbol')
rc = page.addView(anno)
f = open(unicode(symbolFileSpec,'utf-8'),'r')
svg = f.read()
f.close()
sym.Symbol = svg
rc = page.addView(sym)